package com.yourvote.dao;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * Created by IntelliJ IDEA.
 * User: pavlo.fedyna
 * Date: 9/3/12
 * Time: 5:12 PM
 * To change this template use File | Settings | File Templates.
 */
public class EMFService {

    private static final EntityManagerFactory emfInstance = Persistence
            .createEntityManagerFactory("transactions-optional");

    private EMFService() {
    }

    public static EntityManagerFactory get() {
        return emfInstance;
    }
}
